//用户模块的请求api
import axios from '../utils/axiosInstance.js'

//课程中新增章节
export const addChapter=(data)=>{
    return axios({
            method:"post",
            url:"/api/chapters/add",
            data
          })
}
//课程中新增章节
export const delChapter=(id)=>{
    return axios({
        method:"delete",
        url:`/api/chapters/${id}`

    })
}
